package ar.edu.itba.pod.Legajo47342.communication.payload;

import ar.edu.itba.pod.simul.communication.NodeAgentLoad;
import ar.edu.itba.pod.simul.communication.payload.NodeAgentLoadPayload;

public class NodeAgentLoadPayloadImpl implements NodeAgentLoadPayload {

	private static final long serialVersionUID = 1L;
	private NodeAgentLoad load;
	
	public NodeAgentLoadPayloadImpl(NodeAgentLoad load) {
		super();
		this.load = load;
	}

	@Override
	public int getLoad() {
		return load.getNumberOfAgents();
	}

}
